package sto.orz.rptp.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@sto.orz.html.Form
@Entity
public class Datasource {
	private String id;
	private String name;
	private String driver;
	private String url;
	private String username;
	private String password;

	public Datasource() {
	}

	public Datasource(String name) {
		this.name = name;
	}

	public String getDriver() {
		return driver;
	}

	@Id
	@GeneratedValue(generator = "system-uuid")
	@org.hibernate.annotations.GenericGenerator(name = "system-uuid", strategy = "uuid")
	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getPassword() {
		return password;
	}

	public String getUrl() {
		return url;
	}

	public String getUsername() {
		return username;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setUsername(String username) {
		this.username = username;
	}
}
